package com.sky.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * @author sky
 * @create 2021-07-16 16:12
 * 患者信息表
 */
@ApiModel(value = "com-sky-domain-Patient")
@TableName(value = "hos_patient")
public class Patient extends BaseEntity {
    /**
     * 主键
     */
    @TableId(value = "patient_id", type = IdType.INPUT)
    @ApiModelProperty(value = "主键")
    private String patientId;

    /**
     * 患者姓名
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "患者姓名")
    private String name;

    /**
     * 患者电话
     */
    @TableField(value = "phone")
    @ApiModelProperty(value = "患者电话")
    private String phone;

    /**
     * 患者性别0男1女 2未知字典表 sys_user_sex
     */
    @TableField(value = "sex")
    @ApiModelProperty(value = "患者性别0男1女 2未知字典表 sys_user_sex")
    private String sex;

    /**
     * 出生年月
     */
    @TableField(value = "birthday")
    @ApiModelProperty(value = "出生年月")
    private String birthday;

    /**
     * 身份证号[认证ID]
     */
    @TableField(value = "id_card")
    @ApiModelProperty(value = "身份证号[认证ID]")
    private String idCard;

    /**
     * 地址信息
     */
    @TableField(value = "address")
    @ApiModelProperty(value = "地址信息")
    private String address;

    /**
     * 过敏信息
     */
    @TableField(value = "allergy_info")
    @ApiModelProperty(value = "过敏信息")
    private String allergyInfo;

    /**
     * 是否完善信息，0未完善1已完善 字典表 his_patient_msg_final
     */
    @TableField(value = "is_final")
    @ApiModelProperty(value = "是否完善信息，0未完善1已完善 字典表 his_patient_msg_final")
    private String isFinal;

    /**
     * 登录密码
     */
    @TableField(value = "password")
    @ApiModelProperty(value = "登录密码")
    private String password;

    /**
     * 微信openid
     */
    @TableField(value = "openid")
    @ApiModelProperty(value = "微信openid")
    private String openid;

    /**
     * 最后登录ip
     */
    @TableField(value = "last_login_ip")
    @ApiModelProperty(value = "最后登录ip")
    private String lastLoginIp;

    /**
     * 最后登录时间
     */
    @TableField(value = "last_login_time")
    @ApiModelProperty(value = "最后登录时间")
    private Date lastLoginTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    public static final String COL_PATIENT_ID = "patient_id";

    public static final String COL_NAME = "name";

    public static final String COL_PHONE = "phone";

    public static final String COL_SEX = "sex";

    public static final String COL_BIRTHDAY = "birthday";

    public static final String COL_ID_CARD = "id_card";

    public static final String COL_ADDRESS = "address";

    public static final String COL_ALLERGY_INFO = "allergy_info";

    public static final String COL_IS_FINAL = "is_final";

    public static final String COL_PASSWORD = "password";

    public static final String COL_OPENID = "openid";

    public static final String COL_LAST_LOGIN_IP = "last_login_ip";

    public static final String COL_LAST_LOGIN_TIME = "last_login_time";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    /**
     * 获取主键
     *
     * @return patient_id - 主键
     */
    public String getPatientId() {
        return patientId;
    }

    /**
     * 设置主键
     *
     * @param patientId 主键
     */
    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    /**
     * 获取患者姓名
     *
     * @return name - 患者姓名
     */
    public String getName() {
        return name;
    }

    /**
     * 设置患者姓名
     *
     * @param name 患者姓名
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取患者电话
     *
     * @return phone - 患者电话
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置患者电话
     *
     * @param phone 患者电话
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取患者性别0男1女 2未知字典表 sys_user_sex
     *
     * @return sex - 患者性别0男1女 2未知字典表 sys_user_sex
     */
    public String getSex() {
        return sex;
    }

    /**
     * 设置患者性别0男1女 2未知字典表 sys_user_sex
     *
     * @param sex 患者性别0男1女 2未知字典表 sys_user_sex
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * 获取出生年月
     *
     * @return birthday - 出生年月
     */
    public String getBirthday() {
        return birthday;
    }

    /**
     * 设置出生年月
     *
     * @param birthday 出生年月
     */
    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    /**
     * 获取身份证号[认证ID]
     *
     * @return id_card - 身份证号[认证ID]
     */
    public String getIdCard() {
        return idCard;
    }

    /**
     * 设置身份证号[认证ID]
     *
     * @param idCard 身份证号[认证ID]
     */
    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    /**
     * 获取地址信息
     *
     * @return address - 地址信息
     */
    public String getAddress() {
        return address;
    }

    /**
     * 设置地址信息
     *
     * @param address 地址信息
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 获取过敏信息
     *
     * @return allergy_info - 过敏信息
     */
    public String getAllergyInfo() {
        return allergyInfo;
    }

    /**
     * 设置过敏信息
     *
     * @param allergyInfo 过敏信息
     */
    public void setAllergyInfo(String allergyInfo) {
        this.allergyInfo = allergyInfo;
    }

    /**
     * 获取是否完善信息，0未完善1已完善 字典表 his_patient_msg_final
     *
     * @return is_final - 是否完善信息，0未完善1已完善 字典表 his_patient_msg_final
     */
    public String getIsFinal() {
        return isFinal;
    }

    /**
     * 设置是否完善信息，0未完善1已完善 字典表 his_patient_msg_final
     *
     * @param isFinal 是否完善信息，0未完善1已完善 字典表 his_patient_msg_final
     */
    public void setIsFinal(String isFinal) {
        this.isFinal = isFinal;
    }

    /**
     * 获取登录密码
     *
     * @return password - 登录密码
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置登录密码
     *
     * @param password 登录密码
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取微信openid
     *
     * @return openid - 微信openid
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * 设置微信openid
     *
     * @param openid 微信openid
     */
    public void setOpenid(String openid) {
        this.openid = openid;
    }

    /**
     * 获取最后登录ip
     *
     * @return last_login_ip - 最后登录ip
     */
    public String getLastLoginIp() {
        return lastLoginIp;
    }

    /**
     * 设置最后登录ip
     *
     * @param lastLoginIp 最后登录ip
     */
    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    /**
     * 获取最后登录时间
     *
     * @return last_login_time - 最后登录时间
     */
    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    /**
     * 设置最后登录时间
     *
     * @param lastLoginTime 最后登录时间
     */
    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取更新时间
     *
     * @return update_time - 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置更新时间
     *
     * @param updateTime 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}